import request from '@/utils/request';
/**
 * @description 查询列表
 */
export const remoteList = params => {
    return request.get(`/device/manage/query`, params);
};

/**
 * 添加
 */
export const addInfo = data => {
    return request.post(`/device/manage/insert`, data);
};

/**
 * 更新
 */
export const updateInfo = data => {
    return request.post(`/device/manage/update`, data);
};

/**
 * 删除
 */
export const deleteInfo = data =>{
    return request.post(`/device/manage/delete`,data)
}

/***
 * 设备属性列表查询
 */
 export const remoteDevicePropertyList = params => {
    return request.get(`/device/manage/queryAttr`, params);
};
 
//修改设备属性值
export const updateDeviceProperty = data=>{
    return request.post(`/device/manage/updateAtt`, data);
}


//设备配置读取
export const remoteReadDeviceConfig = params=>{
    return request.get(`/device/send/readDeviceInfo`,params)
}

//平台设备同步
export const remoteWriteDeviceInfo = params=>{
    return request.get(`/device/send/writeDeviceInfo`,params)
}


export default{
    remoteList
}